package com.miyuan.bean;

import com.google.gson.Gson;
import com.miyuan.bean.request.SMSParam;

import okhttp3.RequestBody;

/**
 * Created by admin on 2018/5/8.
 */

public class RequestBean {
    private static Gson gson;

    private Gson getGsonInstance() {
        if (gson == null) {
            gson = new Gson();
        }
        return gson;
    }

    public RequestBody toRequestBody() {
        return RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), getGsonInstance().toJson(this));
    }
}
